package com.ocom.exposeapi.feign;

import com.ocom.common.constant.SrvpAccessDeviceUrl;
import com.ocom.common.request.srvpaccess.GetNosendRecordRequest;
import com.ocom.common.request.srvpaccess.SendAccessRecordRequest;
import com.ocom.common.resp.RespMachMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "srvpaccess")
public interface SrvpaccessClientService {

    @PostMapping(value = SrvpAccessDeviceUrl.URLP_ACCESSDEVICE_getReginIdByMach)
    RespMachMessage getReginIdByMach(@RequestParam("comId")Long comId, @RequestParam("machNo")String machNo);

    @PostMapping(value = SrvpAccessDeviceUrl.URLP_ACCESSDEVICE_saveAccessRecord)
    RespMachMessage saveAccessRecord(@RequestParam("companyId")Long companyId,@RequestParam("machNo")String machNo,@RequestParam("idnum")Long idnum,@RequestParam("accessTime")String accessTime,@RequestParam("accessMode")Long accessMode);


}
